package com.cqb.base;

/**
 * @author chenqb
 * @version 1.0
 * @description: 比较StringBuffer与StringBuilder
 * @date 2021/9/29 13:06
 */
public class StringTest {
    public static void main(String[] args) {
        String s="123456";

        /*线程安全 都加上了重量级锁实现*/
        StringBuffer buffer=new StringBuffer();
        /*都没有加锁实现 非线程安全*/
        StringBuilder builder=new StringBuilder();
    }
}
